package create_pattern.factory.factory_method;

/**
 * @author fly
 * @data 2022-03-29
 * 工厂方法模式：JPG图片工厂，成产JPGPicture对象——具体工厂
 */
public class JpgFactory implements ReadFactory {

    @Override
    public Picture createPicture() {
        JpgPicture jpgPicture = new JpgPicture();
        return jpgPicture;
    }
}